package admrouter

import (
	"github.com/gin-gonic/gin"
	"yundian/internel/app/handlers/pcl/admin/stewarduploadhandler"
	"yundian/internel/app/middlewares"
	"yundian/internel/pkg/dingo"
)

func InitUpload() dingo.ApiRouter {
	return func(g *gin.RouterGroup) {
		s := g.Group("steward")
		s.Use(middlewares.JwtAuthMiddleware)
		s.POST("upload-goods-img", stewarduploadhandler.HandleStewardUploadGoodsImg)
		s.POST("upload-common-img", stewarduploadhandler.HandleStewardUploadGoodsImg)
	}
}
